package com.tedu.movie.service;

import com.tedu.movie.mapper.CategoryMapper;
import com.tedu.movie.pojo.Category;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CategoryServiceImpl implements CategoryService{
    @Autowired
    CategoryMapper categoryMapper;
    @Override
    public List<Category> selectAll() {

        return categoryMapper.selectByExample(null);
    }
}
